/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework;



/**
 *
 * @author Josh
 */
public class TagManager {
    private LinkedList<String> tags;
    
    //creates a new TagManager with no tags stored
    public TagManager() {
        tags = new LinkedList<String>();
    }
    
    //adds a new tag to the manager
    public void addNew(String newTag) {
        tags.add(newTag);
    }
    
    //returns true if the tag is already added to the manager, false otherwise
    public boolean tagExists(String s) {
        for(String other : tags) {
            if(s.equals(other))
                return true;
        }
        
        return false;
    }
    
    
    
    
}
